
<script type="text/javascript">

$(document).ready(function(){
	
	$('#hmenus a').click(function(){	
	//	loadData('#content','<?php echo $this->url(array('action'=>'view'));?>');
	});
	//$("#hmenus").ajaxComplete(function(){
		$('#tabs a').click(function(){			
			changeClass('#tabs a','youarehere',this);
			loadData('#question-list','<?php echo $this->url(array('action'=>'data'));?>');
		});
		$(".comment").hide();
		var i=1;
		$(".button").click(function(){			
			if(!i){
			//	$(".comment").slideUp();
				i++;
			}else{
			//	$(".comment").slideDown();
				i--;
			}
			$(".comment").slideToggle("slow");
				
		});
});
</script>
<form >
</form>
<div id="header">
	<div id="portalLink">
		<a href="#">StackExchange</a>
	</div>
	<div id="topbar">
		<div id="hlinks">
			<span id="hlinks-user">
				<a href="#"><?php echo $this->fullName; ?></a>
				<a  href="<?php echo $this->url(array('controller'=>'user','action'=>'logout'));?>">Logout</a>
				<a href="<?php echo $this->url(array('controller'=>'load','action'=>'form'));?>?height=85&width=250&modal=true" class="thickbox" title="Please Sign In">Login</a>  				
				
			</span>
		</div>
		<div id="hsearch">
		<form id="search">
			<input type="text" class="textbox" maxlength="240" size="28" placeholder="search"/>
		</form>
		</div>	
	</div>
	<br class="cbt">
	<div id="hlogo"><a href="<?php echo $this->url(array('controller'=>'index','action'=>'index')); ?>">StackOverflow</a></div>
	<div id="hmenus">
		<div class="nav mainnavs">
			<ul>
				<li><a id="nav-question" href="<?php echo $this->url(array('controller'=>'question','action'=>'index'));?>" class="default" >Question</a></li>
				<li><a id="nav-tags" href="<?php echo $this->url(array('controller'=>'tag','action'=>'index'));?>">Tag</a></li>
				<li><a id="nav-User" href="<?php echo $this->url(array('controller'=>'user','action'=>'index'));?>">User</a></li>
				<li><a id="nav-Badges" href="<?php echo $this->url(array('controller'=>'question','action'=>'index'));?>">Badges</a></li>
				<li><a id="nav-Unanswered" href="<?php echo $this->url(array('controller'=>'question','action'=>'index'));?>">Unanswered</a></li>
			</ul>
		</div>
		<div class="nav askquestion">
			<ul>
				<li><a id="nav-askquestion" href="<?php echo $this->url(array('controller'=>'load','action'=>'form'));?>?height=85&width=250&modal=true" class="thickbox">Ask Question</a></li>
			</ul>
		</div>
	</div>
</div>
<div id="error"></div>
<div id="wait">
	<img src="<?php echo $this->imgUrl;?>/loading.gif" width="200" height="200" />
	</div>